home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / Universal Interfaces / PPCCIncludes / stream.h < prev    next >
Encoding:
Text File  |  1993-12-13  |  869 b   |  38 lines  |  [TEXT/MPS ]

  1. // Copyright 1993, Apple Computer Inc.
  2.  
  3. #ifndef STREAM_H
  4. #define STREAM_H 1
  5.  
  6. #include <iostream.h>
  7. #include <iomanip.h>
  8. #include <stdiostream.h>
  9. #include <fstream.h>
  10.  
  11. #ifndef NULL
  12. #define NULL    0
  13. #endif
  14.  
  15. extern char*  oct(long, int =0);
  16. extern char*  dec(long, int =0);
  17. extern char*  hex(long, int =0);
  18.  
  19. extern char*  chr(int, int =0);    // chr(0) is ""
  20. extern char*  str(const char*, int =0);
  21. extern char*  form(const char* ...);
  22.  
  23. extern istream& WS(istream&) ;
  24. extern void eatwhite(istream&) ;
  25.  
  26. static const int input = (ios::in) ;
  27. static const int output = (ios::out) ;
  28. static const int append = (ios::app) ;
  29. static const int atend = (ios::ate) ;
  30. static const int _good = (ios::goodbit) ;
  31. static const int _bad = (ios::badbit) ;
  32. static const int _fail = (ios::failbit) ;
  33. static const int _eof = (ios::eofbit) ;
  34.  
  35. typedef ios::io_state state_value ;
  36.  
  37. #endif /*STREAM_H*/
  38.